﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YouHP.Model
{
    [Serializable]
    public class PatientRecordInfo : IHydratable
    {
        public int Id { get; set; }
        public int PatientId { get; set; }
        public string PatientName { get; set; }
        public int DiseaseId { get; set; }
        public string DiseaseName { get; set; }

        /// <summary>
        /// 第一次出现症状的时间
        /// </summary>
        public DateTime StartDate { get; set; }

        /// <summary>
        /// 确诊时间
        /// </summary>
        public DateTime ConfirmDate { get; set; }

        /// <summary>
        /// 确诊医院
        /// </summary>
        public string ConfirmHospital { get; set; }

        public DateTime EndDate { get; set; }
        public DateTime RecordDate { get; set; }
        public DateTime UpdateDate { get; set; }
        public int UpdateTime { get; set; }
        public string Remark { get; set; }

        //最新的一次系统Email提示更新日期
        public DateTime LattestEmailHintDate { get; set; }


        public string GraphGeneralPath { get; set; }        
        public string GraphIndicatorPath { get; set; }
        public string GraphSymptomPath { get; set; }        
        public string GraphTreatmentPath { get; set; }
/*
        public int GraphGeneralHeight { get; set; }
        public int GraphSymptomHeight { get; set; }
        public int GraphTreatmentHeight { get; set; }
        public int GraphIndicatorHeight { get; set; }

 */ 
        public PatientRecordInfo()
        {
            //GraphGeneralPath = "";
            //GraphIndicatorPath = "";
            //GraphSymptomPath = "";
            //GraphTreatmentPath = "";

            RecordDate = UpdateDate = LattestEmailHintDate = DateTime.Now;
            EndDate = DateTime.MaxValue;
            UpdateTime = 0;
            ConfirmHospital = "";
        }

        #region IHydratable 成员

        public bool Fill(System.Data.IDataReader dr)
        {
            return false;
        }

        #endregion
    }
}
